Uniied Cardelli-mitchell's Polymorphic Calculus with Subtyping (preliminary Report) ?
نویسنده
چکیده
We join Cardelli's and Mitchell's approaches to polymorphic subtyping by introducing a new uniied calculus G that subsumes both Cardelli-inspired systems with rigid subtyping on the one hand, and the more liberal Mitchell's containment calculus F Mit88] on the other. Up until now both approaches were considered incompatible, since F-provable containments between functional and universal types are unprovable in F and F-bounded, but F lacks the proper treatment of bounded quantiication. We give a logical motivation for the new subtyping system G by interpreting it in the second-order intuitionistic propositional logic. As our system turns out to be stronger (i.e., types more terms) than F , F , F-bounded, we prove the strong normalization theorem by applying the recent evaluation semantics techniques due to McAllester, Ku chan, and Otth MKO95].
منابع مشابه
Polymorphic lambda calculus and subtyping
We present a denotational model for F<, the extension of second-order lambda calculus with subtyping defined in [Cardelli Wegner 1985]. Types are interpreted as arbitrary cpos and elements of types as natural transformations. We prove the soundness of our model with respect to the equational theory of F< [Cardelli et al. 1991] and show coherence. Our model is of independent interest, because it...
متن کاملA Pure Calculus of Subtyping, and Applications (Outline)
One of the problems in understanding object-oriented languages is understanding their type systems, e.g. making sure that they are sound. To this end, I propose a typed foundation for object-oriented languages, based on a small typed λ-calculus with polymorphism and subtyping.
متن کاملSubtyping Recursive Games
Using methods drawn from Game Semantics, we build a sound and computationally adequate model of a simple calculus that includes both subtyping and recursive types. Our model solves recursive type equations up to equality, and is shown to validate a subtyping rule for recursive types proposed by Amadio and Cardelli.
متن کاملObjects and Subtyping in the λΠ-Calculus Modulo
We present a shallow embedding of the Object Calculus of Abadi and Cardelli in the λΠ-calculus modulo, an extension of the λΠ-calculus with rewriting. This embedding may be used as an example of translation of subtyping. We prove this embedding correct with respect to the operational semantics and the type system of the Object Calculus. We implemented a translation tool from the Object Calculus...
متن کاملFrom Classes to Objects via Subtyping
We extend the Abadi-Cardelli calculus of primitive objects with object extension. We enrich object types with a more precise, uniform, and exible type structure. This enables to type object extension under both width and depth subtyping. Objects may also have extend-only or virtual contra-variant methods and read-only co-variant methods. The resulting subtyping relation is richer, and types of ...
متن کامل